package com.xqboss.apps.vo.user;

import com.xqboss.apps.enums.user.UserWalletEnum;
import com.xqboss.apps.enums.user.WalletChangeDirectionEnum;
import com.xqboss.common.annotation.Excel;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 *  用户余额导出vo
 *
 * @author lujiahong
 * @Date 223-12-26
 *
 */
@Data
public class UserWalletListExportVo {

/*    @Excel(name = "记录ID")
    private Long id;

    @Excel(name = "用户ID")
    private Long userId;

    @Excel(name = "订单号")
    private Long orderId;*/

    @Excel(name = "变动时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Excel(name = "变动金额", cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal amount;

    @Excel(name = "变动后金额", cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal amountAfter;

    @Excel(name = "变动前金额", cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal amountBefore;

    @Excel(name = "流动方向", readConverterExp = "IN=入,OUT=出")
    private WalletChangeDirectionEnum direction;

    @Excel(name = "钱包类型", readConverterExp = "CASH=现金钱包,INTEGRAL=热豆钱包,WRENCH=扳手钱包")
    private UserWalletEnum walletType;

/*    @Excel(name = "变动类型", readConverterExp = "ADMIN=系统操作," +
                                                "ORDER_PAY=订单支付," +
                                                "WITHDRAW=余额提现," +
                                                "RECHARGE=余额充值," +
                                                "ORDER_REFUND=订单退款," +
                                                "PUNCH=打卡空投," +
                                                "TEAM=队伍额外空投," +
                                                "INTERACT=互动消耗," +
                                                "REPAIRS=装备修复," +
                                                "WARN_PUNCH=提醒打卡," +
                                                "SHP_DEDUCT=商城抵扣," +
                                                "SHP_FALLBACK=商城退单," +
                                                "OPEN_BOX=开箱," +
                                                "MARKET_INCOME=市场收入," +
                                                "MARKET_SERVICE=市场服务费," +
                                                "ADD_MARKET=市场转卖," +
                                                "CANCEL_MARKET=取消转卖退回," +
                                                "MARKET_BUY=市场购买," +
                                                "EQUIPMENT_UPGRADE=装备升级," +
                                                "SYNTHESIS_CONSUME=合成扣除," +
                                                "SYNTHESIS_RESULT=合成获得," +
                                                "IDENTITY_PROMOTION=身份晋升," +
                                                "HOT_GIVE=热豆赠送," +
                                                "WRENCH_RECEIVE=朋友贡献/领取," +
                                                "WRENCH_TEAM_MATERIAL_PROMOTION=队伍材料升级消耗," +
                                                "WRENCH_TEAM_ORDINARY_PROMOTION=队伍普通升级消耗," +
                                                "WRENCH_ADD_MARKET=市场转卖(扳手)," +
                                                "WRENCH_CANCEL_MARKET=市场转卖退回(扳手)," +
                                                "WRENCH_MARKET_BUY=市场购买(扳手)")
    private WalletChangeTypeEnum changeType;*/

    @Excel(name = "备注")
    private String remark;

}
